package chap04.r21421.d1104.zoodemo;

public class ZooMainApp {
    public static void main(String[] args) {
        Feeder feeder=new Feeder("张三");
        Cat cat=new Cat("小花");
        Dog dog=new Dog("大黄");
        Food f1=new Food("小鱼罐头");
        feeder.feed(f1,cat);
        feeder.feed(new Food("肉骨头"),dog);      //匿名对象


    }
}
